<template>
    <div id="app">
        <h1>这个是app组件</h1>
        <router-link to="/login">login</router-link>
        <router-link to="/register">register</router-link>
        <router-view></router-view>
<hr>
        <mt-button type="default">default</mt-button>
        <mt-button type="primary" @click="toa">弹出框</mt-button>
        <mt-button type="danger">danger</mt-button>
    </div>
</template>

<script>
    import { Toast } from 'mint-ui';
    export default {
            el:'#app',
            methods:{
                toa:function () {
                    Toast({
                        message: '胖虎',
                        position: 'bottom',
                        duration: 1000,
                        iconClass: 'glyphicon glyphicon-ok'
                    });
                }
            }


    }
</script>

<style>
    #app {

    }
</style>


